package com.example.health_life.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ArticleRepository extends JpaRepository<Article,Integer> {

    List<Article> findByType(Byte type);

    List<Article> findByStatus(Byte status);

    List<Article> findByTypeAndStatus(Byte type, Byte status);

}
